package io.renren.modules.testrestful.controller;

import io.renren.modules.testrestful.service.impl.UsersServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api")
public class TokenController {

    @Autowired
    UsersServiceImpl usersService;

    @GetMapping("/token")
    public Object getVueToken() {
        return usersService.getToken();
    }

}